/**
 * 
 */
package com.itee.core.serial;

import gnu.io.CommPortIdentifier;

/**
 * @author Administrator
 * 
 */
public class SerialPort {

	private String portName;
	private int timeout = 3;
	private int delayRead = 1;
	private int baudRate = 9600;
	private int parityBit = 0;
	private int stopBit = 1;
	private int dataBit = 8;

	private CommPortIdentifier portIdentifier;

	public String getPortName() {
		return portName;
	}

	public void setPortName(String portName) {
		this.portName = portName;
	}

	public int getBaudRate() {
		return baudRate;
	}

	public void setBaudRate(int baudRate) {
		this.baudRate = baudRate;
	}

	public int getParityBit() {
		return parityBit;
	}

	public void setParityBit(int parityBit) {
		this.parityBit = parityBit;
	}

	public int getStopBit() {
		return stopBit;
	}

	public void setStopBit(int stopBit) {
		this.stopBit = stopBit;
	}

	public int getDataBit() {
		return dataBit;
	}

	public void setDataBit(int dataBit) {
		this.dataBit = dataBit;
	}

	public int getTimeout() {
		return timeout;
	}

	public void setTimeout(int timeout) {
		this.timeout = timeout;
	}

	public int getDelayRead() {
		return delayRead;
	}

	public void setDelayRead(int delayRead) {
		this.delayRead = delayRead;
	}

	public CommPortIdentifier getPortIdentifier() {
		return portIdentifier;
	}

	public void setPortIdentifier(CommPortIdentifier portIdentifier) {
		this.portIdentifier = portIdentifier;
	}

	public String toString() {
		return this.portName;
	}

}
